/*
 * XML Type:  Transfer
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.Transfer
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04;


/**
 * An XML Transfer(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public interface Transfer extends net.ofx.types.x2003.x04.AbstractInvestmentTransaction
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.s3A74FF4CC3627C5B0D40068015746F8A.TypeSystemHolder.typeSystem.resolveHandle("transferfed7type");
    
    /**
     * Gets the "SECID" element
     */
    net.ofx.types.x2003.x04.SecurityId getSECID();
    
    /**
     * Sets the "SECID" element
     */
    void setSECID(net.ofx.types.x2003.x04.SecurityId secid);
    
    /**
     * Appends and returns a new empty "SECID" element
     */
    net.ofx.types.x2003.x04.SecurityId addNewSECID();
    
    /**
     * Gets the "SUBACCTSEC" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum.Enum getSUBACCTSEC();
    
    /**
     * Gets (as xml) the "SUBACCTSEC" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum xgetSUBACCTSEC();
    
    /**
     * Sets the "SUBACCTSEC" element
     */
    void setSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum.Enum subacctsec);
    
    /**
     * Sets (as xml) the "SUBACCTSEC" element
     */
    void xsetSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum subacctsec);
    
    /**
     * Gets the "UNITS" element
     */
    java.lang.String getUNITS();
    
    /**
     * Gets (as xml) the "UNITS" element
     */
    net.ofx.types.x2003.x04.QuantityType xgetUNITS();
    
    /**
     * Sets the "UNITS" element
     */
    void setUNITS(java.lang.String units);
    
    /**
     * Sets (as xml) the "UNITS" element
     */
    void xsetUNITS(net.ofx.types.x2003.x04.QuantityType units);
    
    /**
     * Gets the "TFERACTION" element
     */
    net.ofx.types.x2003.x04.InOutEnum.Enum getTFERACTION();
    
    /**
     * Gets (as xml) the "TFERACTION" element
     */
    net.ofx.types.x2003.x04.InOutEnum xgetTFERACTION();
    
    /**
     * Sets the "TFERACTION" element
     */
    void setTFERACTION(net.ofx.types.x2003.x04.InOutEnum.Enum tferaction);
    
    /**
     * Sets (as xml) the "TFERACTION" element
     */
    void xsetTFERACTION(net.ofx.types.x2003.x04.InOutEnum tferaction);
    
    /**
     * Gets the "POSTYPE" element
     */
    net.ofx.types.x2003.x04.PositionTypeEnum.Enum getPOSTYPE();
    
    /**
     * Gets (as xml) the "POSTYPE" element
     */
    net.ofx.types.x2003.x04.PositionTypeEnum xgetPOSTYPE();
    
    /**
     * Sets the "POSTYPE" element
     */
    void setPOSTYPE(net.ofx.types.x2003.x04.PositionTypeEnum.Enum postype);
    
    /**
     * Sets (as xml) the "POSTYPE" element
     */
    void xsetPOSTYPE(net.ofx.types.x2003.x04.PositionTypeEnum postype);
    
    /**
     * Gets the "INVACCTFROM" element
     */
    net.ofx.types.x2003.x04.InvestmentAccount getINVACCTFROM();
    
    /**
     * True if has "INVACCTFROM" element
     */
    boolean isSetINVACCTFROM();
    
    /**
     * Sets the "INVACCTFROM" element
     */
    void setINVACCTFROM(net.ofx.types.x2003.x04.InvestmentAccount invacctfrom);
    
    /**
     * Appends and returns a new empty "INVACCTFROM" element
     */
    net.ofx.types.x2003.x04.InvestmentAccount addNewINVACCTFROM();
    
    /**
     * Unsets the "INVACCTFROM" element
     */
    void unsetINVACCTFROM();
    
    /**
     * Gets the "AVGCOSTBASIS" element
     */
    java.lang.String getAVGCOSTBASIS();
    
    /**
     * Gets (as xml) the "AVGCOSTBASIS" element
     */
    net.ofx.types.x2003.x04.AmountType xgetAVGCOSTBASIS();
    
    /**
     * True if has "AVGCOSTBASIS" element
     */
    boolean isSetAVGCOSTBASIS();
    
    /**
     * Sets the "AVGCOSTBASIS" element
     */
    void setAVGCOSTBASIS(java.lang.String avgcostbasis);
    
    /**
     * Sets (as xml) the "AVGCOSTBASIS" element
     */
    void xsetAVGCOSTBASIS(net.ofx.types.x2003.x04.AmountType avgcostbasis);
    
    /**
     * Unsets the "AVGCOSTBASIS" element
     */
    void unsetAVGCOSTBASIS();
    
    /**
     * Gets the "UNITPRICE" element
     */
    java.lang.String getUNITPRICE();
    
    /**
     * Gets (as xml) the "UNITPRICE" element
     */
    net.ofx.types.x2003.x04.UnitPriceType xgetUNITPRICE();
    
    /**
     * True if has "UNITPRICE" element
     */
    boolean isSetUNITPRICE();
    
    /**
     * Sets the "UNITPRICE" element
     */
    void setUNITPRICE(java.lang.String unitprice);
    
    /**
     * Sets (as xml) the "UNITPRICE" element
     */
    void xsetUNITPRICE(net.ofx.types.x2003.x04.UnitPriceType unitprice);
    
    /**
     * Unsets the "UNITPRICE" element
     */
    void unsetUNITPRICE();
    
    /**
     * Gets the "DTPURCHASE" element
     */
    java.lang.String getDTPURCHASE();
    
    /**
     * Gets (as xml) the "DTPURCHASE" element
     */
    net.ofx.types.x2003.x04.DateTimeType xgetDTPURCHASE();
    
    /**
     * True if has "DTPURCHASE" element
     */
    boolean isSetDTPURCHASE();
    
    /**
     * Sets the "DTPURCHASE" element
     */
    void setDTPURCHASE(java.lang.String dtpurchase);
    
    /**
     * Sets (as xml) the "DTPURCHASE" element
     */
    void xsetDTPURCHASE(net.ofx.types.x2003.x04.DateTimeType dtpurchase);
    
    /**
     * Unsets the "DTPURCHASE" element
     */
    void unsetDTPURCHASE();
    
    /**
     * Gets the "INV401KSOURCE" element
     */
    net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum getINV401KSOURCE();
    
    /**
     * Gets (as xml) the "INV401KSOURCE" element
     */
    net.ofx.types.x2003.x04.Investment401KSourceEnum xgetINV401KSOURCE();
    
    /**
     * True if has "INV401KSOURCE" element
     */
    boolean isSetINV401KSOURCE();
    
    /**
     * Sets the "INV401KSOURCE" element
     */
    void setINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum inv401KSOURCE);
    
    /**
     * Sets (as xml) the "INV401KSOURCE" element
     */
    void xsetINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum inv401KSOURCE);
    
    /**
     * Unsets the "INV401KSOURCE" element
     */
    void unsetINV401KSOURCE();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static net.ofx.types.x2003.x04.Transfer newInstance() {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static net.ofx.types.x2003.x04.Transfer newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, null ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, options ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, null ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, options ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        public static net.ofx.types.x2003.x04.Transfer parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.Transfer) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
